package com.java.gdu.service.impl;

import com.java.gdu.entity.User;
import com.java.gdu.mapper.UserMapper;
import com.java.gdu.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Tom
 * @since 2021-04-16
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<User> queryAll() {
        List<User> users = baseMapper.selectList(null);
        return users;
    }
}
